#ifndef CLIENTEAHORCADO_H
#define CLIENTEAHORCADO_H

#include "Ahorcado.h"
#include <string>
#include "RakPeerInterface.h"
enum ClienteState
{
	notReady,
	ready,
	playing,
	waiting,
	won,
	lost
};

class ClienteAhorcado: public Ahorcado
{
private:
	std::string name;
	RakNet::RakPeerInterface *peer;
	ClienteState state;
	std::string curWordState;
	std::string playerPlaying, lastPlayerPlaying, playerWinning;
	RakNet::SystemAddress serverAddress;
	char serverAddressStr[512];
public:
	ClienteAhorcado();
	void play();
	void getClientName();
	void prepareConnection();
	void managePackages() override;
	void update() override;
};

#endif